<?php
/* @var $this AdsController */
/* @var $data Ads */
?>

<li>
	<div class="ads_title">
		<a href="<?php echo CHtml::encode($data->ads_url); ?>"><?php echo CHtml::encode($data->ads_title); ?></a>
	</div>
	<div class="ads_website">
		<a href="<?php echo CHtml::encode($data->ads_url); ?>"><?php echo CHtml::encode($data->ads_website); ?></a>
	</div>
	<div class="ads_content">
		<a href="<?php echo CHtml::encode($data->ads_url); ?>">
			<?php if(CHtml::encode($data->ads_image) != null){?>
				<img src="<?php echo CHtml::encode($data->ads_image); ?>" /> 
			<?php }else{?>
				<img src="images/default.jpg" /> 
			<?php }?>
		</a>
		<div class="ads_desc">
			<?php echo CHtml::encode($data->ads_desc); ?>
		</div>
	</div>
</li>

<?php 
/*
	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_website')); ?>:</b>
	<?php echo CHtml::encode($data->ads_website); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_customer_name')); ?>:</b>
	<?php echo CHtml::encode($data->ads_customer_name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_phone')); ?>:</b>
	<?php echo CHtml::encode($data->ads_phone); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_order')); ?>:</b>
	<?php echo CHtml::encode($data->ads_order); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_position')); ?>:</b>
	<?php echo CHtml::encode($data->ads_position); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('ads_page')); ?>:</b>
	<?php/*
								       * <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_website'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_website); ?> <br />
								       * <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_customer_name'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_customer_name); ?> <br
								       * /> <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_phone'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_phone); ?> <br />
								       * <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_order'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_order); ?> <br />
								       * <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_position'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_position); ?> <br />
								       * <b><?php echo
								       * CHtml::encode($data->getAttributeLabel('ads_page'));
								       * ?>:</b> <?php echo
								       * CHtml::encode($data->ads_page); ?> <br />
								       */
?>